package com.cardetective.shopcar.network.model


data class GoodsListInfoModel(
    val current: Int?,
    val pages: Int?,
    val records: List<GoodsListInfo>,
    val size: Int?,
    val total: Int?
)

data class GoodsListInfo(
    val brandId: String?,
    val categoryPath: String?,
    val goodsName: String?,
    val goodsUnit: String?,
    val goodsVideo: Any?,
    val id: String?,
    val original: String?,
    val price: Float?,
    val recommend: Boolean?,
    val skuId: String?,
    val small: String?,
    val storeCategoryPath: String?,
    val storeId: String?,
    val storeName: String?,
    val thumbnail: String?
)

data class GoodsOrderBar(
    var title: String?,
    var type: String?,
)

/**
 * 商品选中
 */
// 商品详情
data class GoodsDetailInfoModel(
    val goodsParamsVO: List<Any>,
    val goodsSkuSpecVO: List<GoodsSkuSpecVO>,
    val goodsSkuVO: GoodsSkuVO
)

data class GoodsSkuSpecVO(
    val quantity: Int?,
    val skuId: String?,
    val specValues: List<GoodsSkuSpecValue>
)

data class GoodsSkuVO(
    val big: Any?,
    val buyCount: Any?,
    val categoryPath: String?,
    val goodsGalleryList: List<String>?,
    val goodsId: String,
    val goodsName: String?,
    val goodsType: String?,
    val goodsUnit: String?,
    val id: String,
    val intro: String?,
    val original: Any?,
    val price: Double?,
    val quantity: Int,
    val sellingPoint: String?,
    val small: String?,
    val sn: String?,
    val specList: List<GoodsSkuV0Spec>,
    val storeCategoryPath: String?,
    val storeId: String?,
    val storeName: String?,
    val thumbnail: String?
)

data class GoodsSkuSpecValue(
    val specImage: List<String>?,
    val specName: String?,
    val specValue: String?
)

data class GoodsSkuV0Spec(
    val specImage: List<String>?,
    val specName: String?,
    val specValue: String?
)

data class SpecOption(
    val specName: String,
    val specValue: String,
    var isSelected: Boolean = false
)

/**
 * 筛选出规格
 */

// 选中规格list
data class SelectSkuList(val spec: GoodsSkuSpecValue,val data:GoodsSkuVO)


class GoodsSkuInfoList : ArrayList<GoodsSkuInfoListItem>()

data class GoodsSkuInfoListItem(
    val name: String,
    val values: List<GoodsSkuInfoListItemValue>
)

data class GoodsSkuInfoListItemValue(
    val quantity: Int?,
    val skuId: String?,
    val value: String?,
    var isCheck: Boolean
)